<?php
class Kategori_bahan_model extends CI_Model {
	private $table_name = 'kategori_bahan';
	private $primary_key = 'id_kategori_bahan';
	function getAll(){
		return $this->db->get($this->table_name);
	}
	function not($id){
	$this->db->where($this->primary_key.' !=',$id);
	return $this->db->get($this->table_name);
	}
}